import {createApp} from 'vue'
import {IndexApp} from "./IndexApp";
import PlainUi, {PlIcon} from "plain-ui";
import {processApplication} from "../PublicRoot";

PlIcon.registry('sketch-', async (icon) => {
    icon = icon.replace('sketch-', '')
    const svg = (await import("@/lib/sketch/" + icon + ".svg")).default
    return <div style={{backgroundImage: `url(${svg})`}}/>
})

const app = createApp(<IndexApp/>)
app.use(PlainUi)
processApplication(app)
app.mount('#app')
